export default {
    state: () => ({
        companyInfo: {}
    }),
    getters: {
        companyInfo: (state) => state.companyInfo
    },
    mutations: {
        SET_COMPANY_INFO(state, companyInfo) {
            state.companyInfo = {
                ...companyInfo
            }
        },
        SET_PHONE(state, phone) {
            state.companyInfo.alert_phones = phone.alert_phones
        },
        SET_COMPANY_LOGO(state, list) {
            state.companyInfo.logo = list.logo
            state.companyInfo.name = list.name
        }
    }
}
